<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .box {
      width: 610px;
      height: 610px;
      margin: 100px auto;
      background: url(./风景图.jpg);
      overflow: hidden;
    }
    
    .box::before, .box::after {
      float: left;
      content: "";
      width: 50%;
      height: 610px;
      background-image: url(./双开门案例.jpg);
      transition: all .5s;
    }

    .box::after {
      background-position: right 0;
    }

    .box:hover:before {
      transform: translateX(-100%);
    }

    .box:hover::after {
      transform: translateX(100%);
    }
  </style>
</head>

<body>
  <div class="box">
  </div>
</body>

</html>